package com.sprometheus.strategy.email;

import com.sprometheus.core.constants.SendChannel;
import com.sprometheus.core.pojo.GlobalExceptionBO;
import com.sprometheus.core.pojo.Groups;
import com.sprometheus.strategy.RoutingStrategy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.Set;

@Service(SendChannel.EMAIL)
public class Email implements RoutingStrategy {

    private static final Logger logger = LoggerFactory.getLogger(Email.class);

    @Override
    public boolean isEnabled() {
        return false;
    }

    @Override
    public Set<String> getIncludedTracePackage() {
        return Collections.emptySet();
    }

    @Override
    public Set<Groups> getBusiness() {
        return Collections.emptySet();
    }

    @Override
    public Set<Groups> getDeveloper() {
        return Collections.emptySet();
    }

    @Override
    public boolean send(GlobalExceptionBO message) {
        logger.info("邮件推送待开发");
        return false;
    }
}
